import request from '@/utils/request'

// 查询门禁设备列表
export function listDoordevice(query) {
  return request({
    url: '/zhmk/doordevice/list',
    method: 'get',
    params: query
  })
}

// 查询门禁设备详细
export function getDoordevice(id) {
  return request({
    url: '/zhmk/doordevice/' + id,
    method: 'get'
  })
}

// 新增门禁设备
export function addDoordevice(data) {
  return request({
    url: '/zhmk/doordevice',
    method: 'post',
    data: data
  })
}

// 修改门禁设备
export function updateDoordevice(data) {
  return request({
    url: '/zhmk/doordevice',
    method: 'put',
    data: data
  })
}

// 删除门禁设备
export function delDoordevice(id) {
  return request({
    url: '/zhmk/doordevice/' + id,
    method: 'delete'
  })
}

// 导出门禁设备
export function exportDoordevice(query) {
  return request({
    url: '/zhmk/doordevice/export',
    method: 'get',
    params: query
  })
}